package kitBox;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class ObjectWriter {
	private static ObjectWriter ow = new ObjectWriter();
	
	long[] experience = {100,250,500};
	public static ObjectWriter getObjectWriter()
	{
		return ow;
	}
	public void writeObject(Object o,String fileName)
	{
		try {
			ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(new File("D:\\ShapeWar\\"+fileName)));
			oos.writeObject(o);
			oos.flush();
			oos.close();
		} catch (IOException e) {
		}
	}
	public static void main(String[] args)
	{
		
	}
}
